package com.gupaoedu.baifc.simpleProxy;

import com.gupaoedu.baifc.Person;

/**
 * projectName: baifc_proxy
 * packageName: com.gupaoedu.baifc.simpleProxy
 * Created: 2019/3/13.
 * Auther: baifc
 * Description:
 */
public class Father implements Person {

    // 被代理的对象
    private Person person;

    public Father(Person person) {
        this.person = person;
    }

    public void findLove() {
        System.out.println("帮儿子找对象...");
        person.findLove();
    }

}
